package nl.tudelft.jpacman;

import nl.tudelft.jpacman.level.Pellet;
import nl.tudelft.jpacman.level.Player;

/**
 * A default point calculator for the Pac-Man game.
 */
public class DefaultPointCalculator {

    /**
     * Calculates the points when a player eats a pellet.
     *
     * @param player The player who ate the pellet.
     * @param pellet The pellet that was eaten.
     * @return The points to be added to the player's score.
     */
    public int eatPellet(Player player, Pellet pellet) {
        return pellet.getValue();
    }
}
